ao connectのインストール
前提条件
ao connectをアプリにインストールするには、NodeJS/NPMのバージョンが18以上である必要があります。
Installing
npm
sh
npm install --save @permaweb/aoconnect
yarn
sh
yarn add @permaweb/aoconnect -D
このモジュールは、NodeJSおよびブラウザの両方から使用できるようになり、以下のように含めることができます。
ESM (Node & Browser) aka type: module
js
import {
result,
results,
message,
spawn,
monitor,
unmonitor,
dryrun,
} from "@permaweb/aoconnect";
CJS (Node) type: commonjs
js
const {
result,
results,
message,
spawn,
monitor,
unmonitor,
dryrun,
} = require("@permaweb/aoconnect");